#ifndef __BUTTON_H__
#define __BUTTON_H__
#include "air001xx_hal.h"

/*
#define bt1 PF_1 左
#define bt2 PF_0 中
#define bt4 PB_6 右
#define bt3 PB_3 上   与板载蓝灯相连 与字库冲突mosi冲突
#define bt5 PA_14 下 //与SWCLK冲突
*/
#define BUTTON_ZHONG_Pin GPIO_PIN_0
#define BUTTON_ZHONG_GPIO_Port GPIOF

#define BUTTON_LEFT_Pin GPIO_PIN_1
#define BUTTON_LEFT_GPIO_Port GPIOF

#define BUTTON_RIGHT_Pin GPIO_PIN_6
#define BUTTON_RIGHT_GPIO_Port GPIOB

#define BUTTON_ZHONG 0 //确认
#define BUTTON_LEFT 1 //左
#define BUTTON_RIGHT 2 //右

extern volatile uint8_t BUTTON_ZHONG_S;
extern volatile uint8_t BUTTON_LEFT_S;
extern volatile uint8_t BUTTON_RIGHT_S;

/**
  * @brief 初始化按键
  * @note
  * @param
  */
void Button_init(void);

#endif
